/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.entity;

import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 电子票Entity
 * @author leopold
 * @version 2018-09-11
 */
public class AirETickets implements Serializable {

	public static final int NOT_EXPIRED = 0;

	public static final int EXPIRED = -1;

	private static final long serialVersionUID = 1L;
	private Long  id;
	private String ticketNumber;		// 航展票编号
	private String ticketDate;		// 航展时间
	private Integer ticketType;		// 票务类型
	private AirViewerUser user;		// 生成电子票的用户ID
	private AirRideQrCode airRideQrCode;		// 对应二维码id
	private Integer status;		//判断是否过期(0:未过期,-1:过期)
	private Date createDate;	//生成日期
	private int delFlag;		//删除标记
	private String note;		// 备注
	
	public AirETickets() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Length(min=0, max=255, message="航展票编号长度必须介于 0 和 255 之间")
	public String getTicketNumber() {
		return ticketNumber;
	}

	public void setTicketNumber(String ticketNumber) {
		this.ticketNumber = ticketNumber;
	}

	public Integer getTicketType() {
		return ticketType;
	}

	public void setTicketType(Integer ticketType) {
		this.ticketType = ticketType;
	}

	public AirRideQrCode getAirRideQrCode() {
		return airRideQrCode;
	}

	public void setAirRideQrCode(AirRideQrCode airRideQrCode) {
		this.airRideQrCode = airRideQrCode;
	}

	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public AirViewerUser getUser() {
		return user;
	}

	public void setUser(AirViewerUser user) {
		this.user = user;
	}

	public String getTicketDate() {
		return ticketDate;
	}

	public void setTicketDate(String ticketDate) {
		this.ticketDate = ticketDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(int delFlag) {
		this.delFlag = delFlag;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}